package com.leyou.gateway.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("auth-service")
public interface AuthClient {

    /**
     * 登录授权
     *
     * @param id 服务id
     * @param secret 密码
     * @return 无
     */
    @GetMapping("authentication")
    String authentication(@RequestParam("id") Long id, @RequestParam("secret") String secret);
}
